Skip to content

Conversation

erikhfj
Copy link
Member

@erikhfj erikhfj commented Nov 20, 2026

Closes #102

What was done

  • Positioned .back-to-top fixed near the bottom-right corner across desktop and mobile (client/src/components/BackToTop.css), respecting env(safe-area-inset-*).
  • On narrow viewports (<= 700px), kept the button floating as a compact 44×44 px (2.75rem) circular icon-only button by hiding .back-to-top__label while preserving aria-label="Back to top" and aria-hidden="true" on the arrow icon (client/src/components/BackToTop.tsx).
  • Added extra mobile bottom clearance on .results (client/src/components/ResultsLayout.css) so bottom-of-list controls such as Load more and the last card's Crate button remain unobstructed.
  • Expanded client/src/components/BackToTop.test.tsx (accessible label, icon/label structure, axe check) and logged the entry in docs/AI-USAGE.md.

What was tested

  • pnpm format:check && pnpm lint && pnpm typecheck && pnpm test && pnpm build — all passed.
    • Client: 20 test files / 204 tests passed.
    • Largest client JS chunk: 385.54 kB (under 512 kB budget).

@erikhfj erikhfj requested a review from a team as a code owner November 20, 2026 20:16
robertky
robertky previously approved these changes Nov 20, 2026
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The compact mobile button stays available while scrolling, keeps the accessible name when its visible label is hidden, and the added bottom spacing protects the final results controls from overlap. The existing scroll behavior is preserved, and the component tests cover its accessible label and interaction. CI passes.

robertky
robertky previously approved these changes Nov 20, 2026
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The Back to Top control stays fixed in a compact 44px circular layout on mobile, retains its accessible name when the visible label is hidden, and the results area has extra bottom clearance for the floating control. The accessibility test and current CI checks pass.

Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The Back to Top control remains available while scrolling on mobile, keeps its accessible name when the visible label is hidden, and the added bottom spacing prevents it from covering the results controls. The accessibility test and CI checks pass.

@robertky robertky merged commit 097a438 into main Nov 23, 2026
3 checks passed
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Back to Top button visibility on mobile
2 participants